﻿<?xml version="1.0" encoding="utf-8" ?>
<!-- 
    INSTALLATION INSTRUCTIONS:
    1. This file is to be copied to folder %windir%\system32\inetsrv\config\schema 
    2. To the file %windir%\system32\inetsrv\config\applicationHost.config, 
       path /configuration/configSections append the following:
        <section name="altairis.nemesis.gallery" />
    3. Check application registration using the following command:
        appcmd list config -section:altairis.nemesis.gallery
    4. Modify configuration settings:
        appcmd.exe set config "sitename" -section:altairis.nemesis.gallery /+"sizes.[name='SHQ',width='1024',height='1024']" 
-->
<configSchema>
    <sectionSchema name="altairis.nemesis.gallery">
        <element name="templates">
            <attribute name="directoryListing" type="string" defaultValue="~/App_Data/Templates/DirectoryListing.xsl" />
            <attribute name="infoPage" type="string" defaultValue="~/App_Data/Templates/InfoPage.xsl" />
        </element>
        <element name="personalization">
            <attribute name="title" type="string" defaultValue="Nemesis Gallery" />
            <attribute name="copyrightText" type="string" defaultValue="(c) Altairis, 2008" />
            <attribute name="copyrightLink" type="string" defaultValue="http://www.altairis.cz/" />
            <attribute name="styleSheet" type="string" defaultValue="~/_Static/Default/silver.css" />
        </element>
        <element name="sizes">
            <attribute name="default" type="string" />
            <collection addElement="add" removeElement="remove" clearElement="clear" allowDuplicates="false">
                <attribute name="name" type="string" isRequired="true" isUniqueKey="true" />
                <attribute name="width" type="int" defaultValue="50" validationType="integerRange" validationParameter="50,5000" />
                <attribute name="height" type="int" defaultValue="50" validationType="integerRange" validationParameter="50,5000" />
                <attribute name="backgroundColor" type="string" defaultValue="Transparent" validationType="nonEmptyString" />
            </collection>
        </element>
    </sectionSchema>
</configSchema>